package com.cskaoyan.service.wx.llk;

import com.cskaoyan.bean.wx.llk.DashboardVo;
import com.cskaoyan.mapper.wx.llk.DashboardMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @date :  2021/1/9 17:49
 * @Description :
 */
@Service
public class DashboardServiceImpl implements DashboardService {

    @Autowired
    DashboardMapper dashboardMapper;

    @Override
    public DashboardVo queryTotalMsg() {
        Integer goodsTotal = dashboardMapper.selectGoodsTotal();
        Integer userTotal = dashboardMapper.selectUserTotal();
        Integer productTotal = dashboardMapper.selectProductTotal();
        Integer orderTotal = dashboardMapper.selectOrderTotal();
        DashboardVo dashboardVo = new DashboardVo(goodsTotal, userTotal, productTotal, orderTotal);
        return dashboardVo;
    }
}
